package com.zj;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class LogAspect {

    @Pointcut("execution(* com.zj.service.*.*(..))")
    public void pointcut1() {
    }

    @Before("pointcut1()")
    public void before(JoinPoint pj){
        System.out.println("Before:" + pj.getSignature() + ", start!");
    }
}
